 ;;; Unique Landscapes Compatibility Patches Compilation OMOD Installation Script

;;; based on BAIN Wizard Installation Script by Metallicow with additions by Vorians
;;; translated, customized and ported to OMOD by PlanB

;;; This is for German patches only! No English patches included.
;;; This document has No TAB characters in it. It uses 4 spaces for a tab character.

;;; Patches were obtained from these sources:
;;; http://www.tesnexus.com/downloads/file.php?id=13834        ;Unique Landscapes Compatibility Patches @TESNexus
;;; http://www.tesnexus.com/downloads/file.php?id=20218        ;New Roads and Bridges Revised @TESNexus
;;; http://www.tesnexus.com/downloads/file.php?id=32925        ;Open Cities Patches @TESNexus
;;; http://tes.nexusmods.com/downloads/file.php?id=37184       ;OWC-ND Patches @TESNexus

DontInstallAnyDataFiles
DontInstallAnyPlugins
;=====================
; OBMM Versionsprüfung
If VersionLessThan 1.0.4
	Message "Es wird Oblivion Mod Manager Version 1.0.4 oder höher benötigt, um die Patches korrekt zu installieren." "Installation abgebrochen"
	FatalError
EndIf
;=========================
; Installation der Readmes
InstallDataFolder "00 UL Patches Documentation"
;==================================================================
; Against the Zealots of the Nine - Jerall Glacier patch by Vorians
If DataFileExists "JolardHome.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\AgainstTheZealotsOfTheNine-JerallGlacier patch.esp" "AgainstTheZealotsOfTheNine-JerallGlacier patch.esp"
    EndIf
EndIf
;=====================================================
; Akaviri Stronghold - The Lost Coast patch by Vorians
If DataFileExists "300_Akaviri_Stronghold.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\AkaviriStronghold-LostCoast fix.esp" "AkaviriStronghold-LostCoast fix.esp"
    EndIf
EndIf
;=======================================================
; Amen'thalas Well House - Arrius Creek patch by Vorians
SetVar bATWH 0
If DataFileExists "Amen'thalas Well House.esp"
    SetVar bATWH 1
EndIf
If DataFileExists "Amen'thalas Well House for Cobl.esp"
   If Equal %bATWH% 1
       Message "Es wurde Amen'thalas Well House.esp sowie auch Amen'thalas Well House for Cobl.esp erkannt! Bitte entferne eine der beiden ESPs und versuche es erneut."
	   FatalError
   EndIf
   SetVar bATWH 1
EndIf
If Equal %bATWH% 1
   If DataFileExists "xulArriusCreek.esp"
       If DataFileExists "HeartOftheDead.esp"
           Message "Es wurde sowohl HeartOftheDead.esp als auch Amen'thalas Well House.esp erkannt! Bitte deinstalliere eine der beiden Mods. Die Patches sind nicht kompatibel."
           FatalError
       EndIf
       If DataFileExists "xulPatch_AY_AC.esp"
           CopyPlugin "01 Patches\\Amen'thalasWellHouse-xulPatch_AY_AC patch.esp" "Amen'thalasWellHouse-xulPatch_AY_AC patch.esp"
       Else
           CopyPlugin "01 Patches\\Amen'thalasWellHouse-ArriusCreek patch.esp" "Amen'thalasWellHouse-ArriusCreek patch.esp"
       EndIf
   EndIf
EndIf
;=======================================================
; Ancient Dwemer Ruins - Jerall Glacier patch by Vorians
If DataFileExists "Ancient Dwemer Ruin.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\AncientDwemerRuins-JerallGlacier patch.esp" "AncientDwemerRuins-JerallGlacier patch.esp"
    EndIf
EndIf
;=====================================================
; Ancient Source - Chorrol Hinterland patch by Vorians
If DataFileExists "AncientSource.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\AncientSource-ChorrolHinterland patch.esp" "AncientSource-ChorrolHinterland patch.esp"
    EndIf
EndIf
;====================================================
; Ancient Towers - The Eastern Peaks patch by Vorians
If DataFileExists "AncientTowers.esp"
    If DataFileExists "xulTheEasternPeaks.esp"
        CopyPlugin "01 Patches\\AncientTowers-EasternPeaks patch.esp" "AncientTowers-EasternPeaks patch.esp"
    EndIf
EndIf
;=================================================
; Apachii Heroes Store - Snowdale patch by Vorians
If DataFileExists "Apachii_Heroes_Store.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\ApachiiHeroesStore-Snowdale patch.esp" "ApachiiHeroesStore-Snowdale patch.esp"
    EndIf
EndIf
;============================================
; Arcane Rising - Lost Coast patch by Vorians
If DataFileExists "AR.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\ArcaneRising-LostCoast patch.esp" "ArcaneRising-LostCoast patch.esp"
    EndIf
EndIf
;============================================
; Arren/Baddy - Entius Gorge patch by Vorians
If DataFileExists "xulEntiusGorge.esp"
    If DataFileExists "Baddy.esp"
        If DataFileExists "Arren.esp"
            Message "Es wurde Arren.esp sowie auch Baddy.esp erkannt. Bitte entferne eine der beiden ESPs und versuche es erneut."
			FatalError
        EndIf
    Else
        If DataFileExists "Baddy.esp"
            CopyPlugin "01 Patches\\Baddy-EntiusGorge patch.esp" "Baddy-EntiusGorge patch.esp"
        EndIf
        If DataFileExists "Arren.esp"
            CopyPlugin "01 Patches\\Arren-EntiusGorge patch.esp" "Arren-EntiusGorge patch.esp"
        EndIf
    EndIf
EndIf
;========================================================
; Ayleid Ruins Expanded - Jerall Glacier patch by Vorians
If DataFileExists "NNWAREAyleidDungeons_Serie1DV.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\AyleidRuinsExpanded-JerallGlacier patch.esp" "AyleidRuinsExpanded-JerallGlacier patch.esp"
    EndIf
EndIf
;===========================================================
; Bandit Hideouts - Silverfish River Valley patch by Vorians
If DataFileExists "Bandit Hideouts.esp"
    If DataFileExists "xulSilverfishRiverValley.esp"
        CopyPlugin "01 Patches\\BanditHideouts-SilverfishRiverValley patch.esp" "BanditHideouts-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;===============================================
; Belda Elysium - Rolling Hills patch by Vorians
If DataFileExists "BeldaElysium.esp"
    If DataFileExists "xulRollingHills_EV.esp"
        CopyPlugin "01 Patches\\BeldaElysium-RollingHills patch.esp" "BeldaElysium-RollingHills patch.esp"
    Else
        If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
            CopyPlugin "01 Patches\\BeldaElysium-RollingHillsW patch.esp" "BeldaElysium-RollingHillsW patch.esp"
        EndIf
	EndIf
EndIf
;======================================================
; Berg Des Krieger - Cloudtop Mountain patch by Vorians
If DataFileExists "Kriegerburg.esp"
    If DataFileExists "xulCloudtopMountains.esp"
        CopyPlugin "01 Patches\\BergDesKrieger-CloudtopMountain patch.esp" "BergDesKrieger-CloudtopMountain patch.esp"
    EndIf
EndIf
;=====================================================
; Better Cities - Bravil Barrowfields patch by Vorians
If DataFileExists "xulBravilBarrowfields.esp"
    If DataFileExists "Better Cities Full - B&M Edition.esp"
        CopyPlugin "01 Patches\\Better Cities B&M - Unique Landscape Barrowfields.esp" "Better Cities B&M - Unique Landscape Barrowfields.esp"
    Else
	    If DataFileExists "Better Cities Full.esp"
            CopyPlugin "01 Patches\\Better Cities - Unique Landscape Barrowfields.esp" "Better Cities - Unique Landscape Barrowfields.esp"
        EndIf
	EndIf
EndIf
;==================================================
; Better Cities - Cheydinhal Falls patch by Vorians
If DataFileExists "xulCheydinhalFalls.esp"
    If DataFileExists "Better Cities Full - B&M Edition.esp"
        CopyPlugin "01 Patches\\Better Cities - Unique Landscape Cheydinhal Falls.esp" "Better Cities - Unique Landscape Cheydinhal Falls.esp"
	Else
	    If DataFileExists "Better Cities Full.esp"
		    CopyPlugin "01 Patches\\Better Cities - Unique Landscape Cheydinhal Falls.esp" "Better Cities - Unique Landscape Cheydinhal Falls.esp"
        EndIf
	EndIf
EndIf
;====================================================
; Better Cities - Chorrol Hinterland patch by Vorians
If DataFileExists "xulChorrolHinterland.esp"
    If DataFileExists "Better Cities Full - B&M Edition.esp"
        CopyPlugin "01 Patches\\Better Cities - Unique Landscape Chorrol Hinterland.esp" "Better Cities - Unique Landscape Chorrol Hinterland.esp"
	Else
	    If DataFileExists "Better Cities Full.esp"
		    CopyPlugin "01 Patches\\Better Cities - Unique Landscape Chorrol Hinterland.esp" "Better Cities - Unique Landscape Chorrol Hinterland.esp"
        EndIf
	EndIf
EndIf
;===============================================
; Better Cities - Imperial Isle patch by Vorians
If DataFileExists "xulImperialIsle.esp"
    If DataFileExists "Better Cities IC Waterfront.esp"
        CopyPlugin "01 Patches\\Better Cities - Unique Landscape Imperial Isle.esp" "Better Cities - Unique Landscape Imperial Isle.esp"
	Else
	    If DataFileExists "Better Imperial City.esp"
		    CopyPlugin "01 Patches\\Better Cities - Unique Landscape Imperial Isle.esp" "Better Cities - Unique Landscape Imperial Isle.esp"
        EndIf
	EndIf
EndIf
;====================================================
; Better Cities - Skingrad Outskirts patch by Vorians
If DataFileExists "xulSkingradOutskirts.esp"
    If DataFileExists "Better Cities Full - B&M Edition.esp"
        CopyPlugin "01 Patches\\Better Cities - Unique Landscape Skingrad Outskirts.esp" "Better Cities - Unique Landscape Skingrad Outskirts.esp"
	Else
	    If DataFileExists "Better Cities Full.esp"
		    CopyPlugin "01 Patches\\Better Cities - Unique Landscape Skingrad Outskirts.esp" "Better Cities - Unique Landscape Skingrad Outskirts.esp"
        EndIf
	EndIf
EndIf
;==============================================================
; Better Daedric Shrines - Unique Landscapes patches by Vorians
If DataFileExists "better daedric shrines Meridia.esp"
    If DataFileExists "xulRiverEthe.esp"
        CopyPlugin "01 Patches\\BetterDaedricShrinesMeridia-RiverEthe patch.esp" "BetterDaedricShrinesMeridia-RiverEthe patch.esp"
    EndIf
EndIf
If DataFileExists "Better daedric shrines Vaermina.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\BetterDaedricShrineVaermina-AncientYews patch.esp" "BetterDaedricShrineVaermina-AncientYews patch.esp"
    EndIf
EndIf
If DataFileExists "Better daedric shrines full.esp"
    If DataFileExists "xulRiverEthe.esp"
        If DataFileExists "xulAncientYews.esp"
            CopyPlugin "01 Patches\\BetterDaedricShrinesFull-UniqueLandscapes patch.esp" "BetterDaedricShrinesFull-UniqueLandscapes patch.esp"
        Else
            CopyPlugin "01 Patches\\BetterDaedricShrinesFull-RiverEthe patch.esp" "BetterDaedricShrinesFull-RiverEthe patch.esp"
        EndIf
    Else
	    If DataFileExists "xulAncientYews.esp"
            CopyPlugin "01 Patches\\BetterDaedricShrinesFull-AncientYews patch.esp" "BetterDaedricShrinesFull-AncientYews patch.esp"
		EndIf
    EndIf
EndIf
;=================================================
; Billsburg - Unique Landscapes patches by Vorians
If DataFileExists "English Billsburg_Rens_Hair_1.51.esp"
    If DataFileExists "Billsburg.esp"
        Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    Else
	    If DataFileExists "English Billsburg v1.5.esp"
            Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
        EndIf
	EndIf
Else
    If DataFileExists "Billsburg.esp"
        If DataFileExists "English Billsburg_Rens_Hair_1.51.esp"
            Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
        Else
		    If DataFileExists "English Billsburg v1.5.esp"
                Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
			EndIf
		EndIf
    EndIf
Else
    If DataFileExists "English Billsburg v1.5.esp"
        If DataFileExists "Billsburg.esp"
            Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
        Else
	        If DataFileExists "English Billsburg_Rens_Hair_1.51.esp"
                Message "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
			EndIf
		EndIf
    EndIf
EndIf

SetVar BillsburgVar 0
If DataFileExists "English Billsburg_Rens_Hair_1.51.esp"
    SetVar BillsburgVar 1
EndIf
If DataFileExists "Billsburg.esp"
    SetVar BillsburgVar 2
EndIf
If DataFileExists "English Billsburg v1.5.esp"
    SetVar BillsburgVar 3
EndIf
If Equal %BillsburgVar% 1
    If DataFileExists "xulColovianHighlands_EV.esp"
        If DataFileExists "xulCloudtopMountains.esp"
            CopyPlugin "01 Patches\\Billsburg-UniqueLandscapes patch1.esp" "Billsburg-UniqueLandscapes patch1.esp"
        EndIf
    Else
	    If DataFileExists "xulCloudtopMountains.esp"
            CopyPlugin "01 Patches\\Billsburg-CloudtopMountains patch1.esp" "Billsburg-CloudtopMountains patch1.esp"
		EndIf
    Else
	    If DataFileExists "xulColovianHighlands_EV.esp"
            CopyPlugin "01 Patches\\Billsburg-ColovianHighlands patch.esp" "Billsburg-ColovianHighlands patch.esp"
		EndIf
    EndIf
Else
    If Equal %BillsburgVar% 2
        If DataFileExists "xulColovianHighlands_EV.esp"
            If DataFileExists "xulCloudtopMountains.esp"
                CopyPlugin "01 Patches\\Billsburg-UniqueLandscapes patch2.esp" "Billsburg-UniqueLandscapes patch2.esp"
			EndIf
        Else
	        If DataFileExists "xulCloudtopMountains.esp"
                CopyPlugin "01 Patches\\Billsburg-CloudtopMountains patch2.esp" "Billsburg-CloudtopMountains patch2.esp"
		    EndIf
        Else
	        If DataFileExists "xulColovianHighlands_EV.esp"
                CopyPlugin "01 Patches\\Billsburg-ColovianHighlands patch.esp" "Billsburg-ColovianHighlands patch.esp"
		    EndIf
		EndIf
    EndIf
Else
    If Equal %BillsburgVar% 3
        If DataFileExists "xulColovianHighlands_EV.esp"
            If DataFileExists "xulCloudtopMountains.esp"
                CopyPlugin "01 Patches\\Billsburg-UniqueLandscapes patch3.esp" "Billsburg-UniqueLandscapes patch3.esp"
			EndIf
        Else
	        If DataFileExists "xulCloudtopMountains.esp"
                CopyPlugin "01 Patches\\Billsburg-CloudtopMountains patch3.esp" "Billsburg-CloudtopMountains patch3.esp"
		    EndIf
        Else
	        If DataFileExists "xulColovianHighlands_EV.esp"
                CopyPlugin "01 Patches\\Billsburg-ColovianHighlands patch.esp" "Billsburg-ColovianHighlands patch.esp"
			EndIf
		EndIf
    EndIf
EndIf
;==============================================
; BlackMarsh Hall - River Ethe patch by Vorians
If DataFileExists "BlackMarshHall.esp"
    If DataFileExists "xulRiverEthe.esp"
        CopyPlugin "01 Patches\\BlackMarshHall-RiverEthe patch.esp" "BlackMarshHall-RiverEthe patch.esp"
    EndIf
EndIf
;=====================================================
; Blackrock Mountain - Jerall Glacier patch by Vorians
If DataFileExists "Blackrock_Mountain-4489.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\BlackrockMountain-JerallGlacier patch.esp" "BlackrockMountain-JerallGlacier patch.esp"
    EndIf
EndIf
;==============================================
; Blackscar Citadel - Aspen Wood patch by Chaky
If DataFileExists "Blackscar Citadel.esp"
    If DataFileExists "xulAspenWood.esp"
        CopyPlugin "01 Patches\\BlackscarCitadel-AspenWood patch.esp" "BlackscarCitadel-AspenWood patch.esp"
    EndIf
EndIf
;====================================================
; Blood & Mud - Bravil Barrowfields patch by Arthmoor
If DataFileExists "Better Cities Full - B&M Edition.esp"
    ;Do nothing
Else
    If DataFileExists "Blood&Mud.esp"
        If DataFileExists "xulBravilBarrowfields.esp"
            CopyPlugin "01 Patches\\BarrowFields-Blood&Mud-Patch.esp" "BarrowFields-Blood&Mud-Patch.esp"
		EndIf
    EndIf
EndIf
;================================================
; Blood & Mud - Cheydinhal Falls patch by Vorians
If DataFileExists "Blood&Mud.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\Blood&Mud-CheydinhalFalls patch.esp" "Blood&Mud-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=============================================
; Blood & Mud - Panther River patch by Vorians
If DataFileExists "Blood&Mud.esp"
    If DataFileExists "xulPantherRiver.esp"
        CopyPlugin "01 Patches\\Blood&Mud-PantherRiver patch.esp" "Blood&Mud-PantherRiver patch.esp"
    EndIf
EndIf
;==============================================================
; Bravil Bridge Cottage - Bravil Barrowfields patch by Arthmoor
If DataFileExists "BravilBridgeCottage.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\BravilBridgeCottage + Barrowfields Patch.esp" "BravilBridgeCottage + Barrowfields Patch.esp"
    EndIf
EndIf
;====================================================
; Bravil Docks - Bravil Barrowfields patch by Vorians
If DataFileExists "Bravil Docks.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\BravilDocks-Barrowfields patch.esp" "BravilDocks-Barrowfields patch.esp"
    EndIf
EndIf
;===========================================
; Castle Dracula - Snowdale patch by Vorians
If DataFileExists "CV - Castle Dracula.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\CastleDracula-Snowdale patch.esp" "CastleDracula-Snowdale patch.esp"
    EndIf
EndIf
;====================================================
; Castle Dunkerlore - Blackwood Forest patch by Chaky
If DataFileExists "Castle_Dunkerlore_V1.esp"
    If DataFileExists "xulBlackwoodForest.esp"
        CopyPlugin "01 Patches\\CastleDunkerlore-BlackwoodForest patch.esp" "CastleDunkerlore-BlackwoodForest patch.esp"
    EndIf
EndIf
;========================================================================
; Castle Veyond Dunkerlore Relocated - Bravil Barrowfields patch by Chaky
If DataFileExists "Castle_Veyond.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\CastleVeyond-BravilBarrowfields patch.esp" "CastleVeyond-BravilBarrowfields patch.esp"
    EndIf
EndIf
;======================================================================
; The Fight for Castle Ravenpride - Cheydinhal Falls patches by Vorians
If DataFileExists "Burg Rabenstolz.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\CastleRavenprideDV-CheydinhalFalls patch.esp" "CastleRavenprideDV-CheydinhalFalls patch.esp"
    EndIf
EndIf
;==================================================
; Castle Seaview - The Lost Coast patch by Arthmoor
; Eagles Rest - Lost Coast patches by Arthmoor
If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
    If DataFileExists "Castle_Seaview.esp"
	    If DataFileExists "EaglesRest.esp"
		    CopyPlugin "01 Patches\\EaglesRest+LostCoast+CastleSeaview Patch.esp" "EaglesRest+LostCoast+CastleSeaview Patch.esp"
		Else
            CopyPlugin "01 Patches\\CastleSeaview+LostCoast Patch.esp" "CastleSeaview+LostCoast Patch.esp"
		EndIf
	Else
	    If DataFileExists "EaglesRest.esp"
		    CopyPlugin "01 Patches\\EaglesRest+LostCoast Patch.esp" "EaglesRest+LostCoast Patch.esp"
		EndIf
    EndIf
EndIf
;=================================================================================
; Castle Seaview - Imperial City of Sutch Reborn - The Lost Coast patch by Vorians
If DataFileExists "(DC) Sutch Reborn.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        If DataFileExists "Castle_Seaview.esp"
            ;Imperial City of Sutch Reborn - Castle Seaview - The Lost Coast Patch by Vorians
            CopyPlugin "01 Patches\\CastleSeaview-SutchReborn-LostCoast patch.esp" "CastleSeaview-SutchReborn-LostCoast patch.esp"
        Else
            CopyPlugin "01 Patches\\SutchReborn-LostCoast patch.esp" "SutchReborn-LostCoast patch.esp"
        EndIf
    EndIf
EndIf
;==========================================================
;Imperial City of Sutch Reborn - The Heath patch by Vorians
If DataFileExists "(DC) Sutch Reborn.esp"
    If DataFileExists "xulTheHeath.esp"
        CopyPlugin "01 Patches\\SutchReborn-TheHeath patch.esp" "SutchReborn-TheHeath patch.esp"
    EndIf
EndIf
;================================================
; CDM-Necromancy - Rolling Hills patch by Vorians
If DataFileExists "CDM-Necromancy.esp"
    If DataFileExists "xulRollingHills_EV.esp"
        CopyPlugin "01 Patches\\CDMNecromancy-RollingHills patch.esp" "CDMNecromancy-RollingHills patch.esp"
	Else
	    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
		    CopyPlugin "01 Patches\\CDMNecromancy-RollingHills patch.esp" "CDMNecromancy-RollingHills patch.esp"
		EndIf
    EndIf
EndIf
;=======================================================
; Chorrol Plateau - Unique Landscapes patches by Vorians
If DataFileExists "ChorrolPlateau.esp"
    If DataFileExists "xulChorrolHinterlands.esp"
        If DataFileExists "xulRiverEthe.esp"
            CopyPlugin "01 Patches\\ChorrolPlateau-UniqueLandscapes patch.esp" "ChorrolPlateau-UniqueLandscapes patch.esp"
		EndIf
    Else
	    If DataFileExists "xulChorrolHinterlands.esp"
            CopyPlugin "01 Patches\\ChorrolPlateau-ChorrolHinterland patch.esp" "ChorrolPlateau-ChorrolHinterland patch.esp"
		EndIf
    Else
	    If DataFileExists "xulRiverEthe.esp"
            CopyPlugin "01 Patches\\ChorrolPlateau-RiverEthe patch.esp" "ChorrolPlateau-RiverEthe patch.esp"
		EndIf
    EndIf
EndIf
;==========================================
; Cigarettes - Rolling Hills patch by TodaY
If DataFileExists "Cigarettes.esp"
    If DataFileExists "xulRollingHills_EV.esp"
        CopyPlugin "01 Patches\\CigarettesRollingHillsFix.esp" "CigarettesRollingHillsFix.esp"
	Else
	    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
		    CopyPlugin "01 Patches\\CigarettesRollingHillsFix.esp" "CigarettesRollingHillsFix.esp"
		EndIf
    EndIf
EndIf
;=============================================
; Country Home - Arrius Creek patch by Vorians
If DataFileExists "CountryHome.esp"
    If DataFileExists "xulArriusCreek.esp"
        CopyPlugin "01 Patches\\CountryHome-ArriusCreek patch.esp" "CountryHome-ArriusCreek patch.esp"
    EndIf
EndIf
;=====================================================
; County Sutch Owls Cove - Lost Coast patch by Vorians
If DataFileExists "(DC) County Sutch - Owls Cove.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\CountySutchOwlsCove-LostCoast patch.esp" "CountySutchOwlsCove-LostCoast patch.esp"
    EndIf
EndIf
;==============================================
; Curse of Hircine - Jerall Glacier patch by Vorians
If DataFileExists "CurseOfHircine.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\CurseofHircine-JerallGlacier patch.esp" "CurseofHircine-JerallGlacier patch.esp"
    EndIf
EndIf
;============================================
; Cybiades - The Lost Coast patch by Arthmoor
If DataFileExists "Cybiades.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\LostCoast + Cybiades Patch.esp" "LostCoast + Cybiades Patch.esp"
    EndIf
EndIf
;===================================================================
; Dark Brotherhood Chronicles - Unique Landscapes patches by Vorians
If DataFileExists "DarkBrotherhoodChronicles.esp"
    If DataFileExists "xulAncientYews.esp"
        If DataFileExists "xulChorrolHinterland.esp"
		    If DataFileExists "xulLushWoodlands.esp"
			    If DataFileExists "xulTheHeath.esp"
                    CopyPlugin "01 Patches\\DarkBrotherhoodChronicles-UniqueLandscapes Merged patch.esp" "DarkBrotherhoodChronicles-UniqueLandscapes Merged patch.esp"
				EndIf
			EndIf
		EndIf
	Else
	    If DataFileExists "xulAncientYews.esp"
	       CopyPlugin "01 Patches\\DarkBrotherhoodChronicles-AncientYews patch.esp" "DarkBrotherhoodChronicles-AncientYews patch.esp"
		EndIf
        If DataFileExists "xulChorrolHinterland.esp"
            CopyPlugin "01 Patches\\DarkBrotherhoodChronicles-ChorrolHinterland patch.esp" "DarkBrotherhoodChronicles-ChorrolHinterland patch.esp"
        EndIf
        If DataFileExists "xulLushWoodlands.esp"
            CopyPlugin "01 Patches\\DarkBrotherhoodChronicles-LushWoodlands patch.esp" "DarkBrotherhoodChronicles-LushWoodlands patch.esp"
        EndIf
        If DataFileExists "xulTheHeath.esp"
            CopyPlugin "01 Patches\\DarkBrotherhoodChronicles-TheHeath patch.esp" "DarkBrotherhoodChronicles-TheHeath patch.esp"
        EndIf
    EndIf
EndIf
;===================================================================
; Dibella Temple Willow Lake Village - Entius Gorge patch by Vorians
If DataFileExists "DibellaTempleWillowLakeVillagev1.esp"
    If DataFileExists "xulEntiusGorge.esp"
        CopyPlugin "01 Patches\\DibellaTempleWillowLakeVillage-EntiusGorge patch.esp" "DibellaTempleWillowLakeVillage-EntiusGorge patch.esp"
    EndIf
EndIf
;======================================================================
; Duke Patrick's SCA Combat Archery - The Lost Coast patch by weelillad
If DataFileExists "Duke Patricks SCA Combat Archery.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\Duke Patrick's SCA Combat Archery patch for xulLostCoast.esp" "Duke Patrick's SCA Combat Archery patch for xulLostCoast.esp"
    EndIf
EndIf
;========================================================
; Dungeons of Ivellon - Cheydinhal Falls patch by Vorians
If DataFileExists "Ivellon.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\DungeonsOfIvellon-CheydinhalFalls patch.esp" "DungeonsOfIvellon-CheydinhalFalls patch.esp"
    EndIf
EndIf
;===============================================================
; Dwarves of the Mountain - Unique Landscapes patches by Vorians
If DataFileExists "Dwarven Mines.esp"
    If DataFileExists "xulAncientYews.esp"
	    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
		    If DataFileExists "xulColovianHighlands_EV.esp"
                CopyPlugin "01 Patches\\DwarvenMines-UniqueLandscapes Merged patch.esp" "DwarvenMines-UniqueLandscapes Merged patch.esp"
			Else
			    CopyPlugin "01 Patches\\DwarvenMines-AncientYews patch.esp" "DwarvenMines-AncientYews patch.esp"
				CopyPlugin "01 Patches\\DwarvenMines-LostCoast patch.esp" "DwarvenMines-LostCoast patch.esp"
			EndIf
		Else
		    If DataFileExists "xulColovianHighlands_EV.esp"
			    CopyPlugin "01 Patches\\DwarvenMines-AncientYews patch.esp" "DwarvenMines-AncientYews patch.esp"
				CopyPlugin "01 Patches\\DwarvenMines-ColovianHighlands patch.esp" "DwarvenMines-ColovianHighlands patch.esp"
			EndIf
		Else
		    CopyPlugin "01 Patches\\DwarvenMines-AncientYews patch.esp" "DwarvenMines-AncientYews patch.esp"
		EndIf
    Else
        If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
		    If DataFileExists "xulColovianHighlands_EV.esp"
			    CopyPlugin CopyPlugin "01 Patches\\DwarvenMines-LostCoast patch.esp" "DwarvenMines-LostCoast patch.esp"
				CopyPlugin "01 Patches\\DwarvenMines-ColovianHighlands patch.esp" "DwarvenMines-ColovianHighlands patch.esp"
			Else
			    CopyPlugin CopyPlugin "01 Patches\\DwarvenMines-LostCoast patch.esp" "DwarvenMines-LostCoast patch.esp"
			EndIf
		EndIf
	Else
	    If DataFileExists "xulColovianHighlands_EV.esp"
	        CopyPlugin "01 Patches\\DwarvenMines-ColovianHighlands patch.esp" "DwarvenMines-ColovianHighlands patch.esp"
		EndIf
	EndIf
EndIf
;=============================================
; Eagles Rest - Lost Coast patches by Arthmoor
; in Castle Seaview Patch Installation eingebunden
;=====================================================
; Eastbrink - Silverfish River Valley patch by Vorians
If DataFileExists "EastbrinkBasic.esp"
    If DataFileExists "xulSilverfishRiverValley.esp"
        CopyPlugin "01 Patches\\EastbrinkBasic-SliverfishRiverValley patch.esp" "EastbrinkBasic-SliverfishRiverValley patch.esp"
    EndIf
EndIf
;==========================================================
; Elsweyr Anequina - Fallenleaf Everglade patch by Arthmoor
If DataFileExists "ElsweyrAnequina.esp"
    If DataFileExists "xulFallenleafEverglade.esp"
        CopyPlugin "01 Patches\\Anequina-Fallenleaf-Patch.esp" "Anequina-Fallenleaf-Patch.esp"
    EndIf
EndIf
;=======================================================
; Et in Arkay Ego - Unique Landscapes patches by Vorians
If DataFileExists "EiAmod.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
	    If DataFileExists "xulColovianHighlands_EV.esp"
		    If DataFileExists "xulCheydinhalFalls.esp"
			    If DataFileExists "xulAspenWood.esp"
                    CopyPlugin "01 Patches\\EtInArkay-UniqueLandscapes Merged patch.esp" "EtInArkay-UniqueLandscapes Merged patch.esp"
				EndIf
			EndIf
		EndIf
    Else
        If DataFileExists "xulBravilBarrowfields.esp"
            CopyPlugin "01 Patches\\EtInArkay-BravilBarrowfields patch.esp" "EtInArkay-BravilBarrowfields patch.esp"
        EndIf
        If DataFileExists "xulColovianHighlands_EV.esp"
            CopyPlugin "01 Patches\\EtInArkay-ColovianHighlands patch.esp" "EtInArkay-ColovianHighlands patch.esp"
        EndIf
        If DataFileExists "xulCheydinhalFalls.esp"
            CopyPlugin "01 Patches\\EtInArkay-CheydinhalFalls patch.esp" "EtInArkay-CheydinhalFalls patch.esp"
        EndIf
        If DataFileExists "xulAspenWood.esp"
            CopyPlugin "01 Patches\\EtInArkay-AspenWood patch.esp" "EtInArkay-AspenWood patch.esp"
        EndIf
    EndIf
EndIf
;======================================
; Feldscar - Snowdale patch by Arthmoor
If DataFileExists "Feldscar.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\Feldscar+Snowdale Patch.esp" "Feldscar+Snowdale Patch.esp"
    EndIf
EndIf
;=================================================
; Fishermans Cottage - Lost Coast patch by Vorians
If DataFileExists "FishermansCottage.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\FishermansCottage-LostCoast patch.esp" "FishermansCottage-LostCoast patch.esp"
    EndIf
EndIf
;========================================================
; The Temple of Five Lanterns - Stendarr patch by Vorians
If DataFileExists "LanternMonastery.esp"
    If DataFileExists "xulStendarrValley.esp"
        CopyPlugin "01 Patches\\FiveLanterns-StendarrValley patch.esp" "FiveLanterns-StendarrValley patch.esp"
    EndIf
EndIf
;=============================================
; Forgotten Tomb - Lost Coast patch by Vorians
If DataFileExists "Forgotten Tomb.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\ForgottenTomb-LostCoast patch.esp" "ForgottenTomb-LostCoast patch.esp"
    EndIf
EndIf
;===============================================
; Fort Ferrion - Jerall Glacier patch by Vorians
If DataFileExists "Fort Ferrion.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\FortFerrion-JerallGlacier patch.esp" "FortFerrion-JerallGlacier patch.esp"
    EndIf
EndIf
;=========================================================
; Fran's More Wilderness Life - The Heath patch by Vorians
If DataFileExists "Francesco's More Wilderness Life.esp"
    If DataFileExists "xulTheHeath.esp"
        CopyPlugin "FranMWL-TheHeath patch.esp" "01 Patches\\FranMWL-TheHeath patch.esp"
    EndIf
EndIf
;==================================================
; Frostcrag Reborn - Snowdale patch by Thomas Kaira
If DataFileExists "DLCFrostcrag.esp"
    If DataFileExists "Meshes\\FrostcragReborn\\FRDarkTower.nif"
        If DataFileExists "xulSnowdale.esp"
            CopyPlugin "01 Patches\\FrostcragReborn-Snowdale patch.esp" "FrostcragReborn-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;=====================================================
; Fuse's Snail Racing - Imperial Isle patch by Vorians
If DataFileExists "FuseSnailRacing.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\FuseSnailRacing-ImperialIsle patch.esp" "FuseSnailRacing-ImperialIsle patch.esp"
    EndIf
EndIf
;==================================================
; Gaelendryll - Brena River Ravine patch by Vorians
If DataFileExists "Gaelendryl.esp"
    If DataFileExists "xulBrenaRiverRavine.esp"
        CopyPlugin "01 Patches\\Gaelendryll-BrenaRiver patch.esp" "Gaelendryll-BrenaRiver patch.esp"
    EndIf
EndIf
;================================================================
; Gates to Aesgaard Episode One - Jerall Glacier patch by Vorians
If DataFileExists "GTAesgaard.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\GatesToAesgaardEp1-JerallGlacier patch.esp" "GatesToAesgaardEp1-JerallGlacier patch.esp"
    EndIf
EndIf
;==========================================================
; Gates to Aesgaard Episode Two - Snowdale patch by Vorians
If DataFileExists "GTAesgaard_2.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\GatesToAesgaardEp2-Snowdale patch.esp" "GatesToAesgaardEp2-Snowdale patch.esp"
    EndIf
EndIf
;=====================================================
; Gift of Kynareth - Cheydinhal Falls patch by Vorians
If DataFileExists "Gift of Kynareth.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\GiftOfKynareth-CheydinhalFalls patch.esp" "GiftOfKynareth-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Goblinwatch Keep- Unique Landscapes patches by Vorians
If DataFileExists "GoblinwatchKeep.esp"
    If DataFileExists "xulCloudtopMountains.esp"
        CopyPlugin "01 Patches\\GoblinwatchKeep-CloudtopMountains patch.esp" "GoblinwatchKeep-CloudtopMountains patch.esp"
    EndIf
    If DataFileExists "xulStendarrValley.esp"
        CopyPlugin "01 Patches\\GoblinwatchKeep-StendarrValley patch.esp" "GoblinwatchKeep-StendarrValley patch.esp"
    EndIf
EndIf
;===========================================================
; Golden Arrow Archers Shop - Rolling Hills patch by Vorians
If DataFileExists "goldenarrowarcheryshop.esp"
    If DataFileExists "xulRollingHills_EV.esp"
        CopyPlugin "01 Patches\\goldenarchery-rollinghills fix.esp" "goldenarchery-rollinghills fix.esp"
	Else
	    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
		    CopyPlugin "01 Patches\\goldenarchery-rollinghills fix.esp" "goldenarchery-rollinghills fix.esp"
		EndIf
    EndIf
EndIf
;====================================================
; Golden Crest - Unique Landscapes patches by Vorians
If DataFileExists "GoldenCrest.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
	    If DataFileExists "xulCloudtopMountains.esp"
		    If DataFileExists "xulSnowdale.esp"
                CopyPlugin "01 Patches\\GoldenCrest-UniqueLandscapes Merged patch.esp" "GoldenCrest-UniqueLandscapes Merged patch.esp"
			EndIf
		EndIf
    Else
        If DataFileExists "xulBravilBarrowfields.esp"
            CopyPlugin "01 Patches\\GoldenCrest-BravilBarrowfields patch.esp" "GoldenCrest-BravilBarrowfields patch.esp"
        EndIf
        If DataFileExists "xulCloudtopMountains.esp"
            CopyPlugin "01 Patches\\GoldenCrest-CloudtopMountains patch.esp" "GoldenCrest-CloudtopMountains patch.esp"
        EndIf
        If DataFileExists "xulSnowdale.esp"
            CopyPlugin "01 Patches\\GoldenCrest-Snowdale patch.esp" "GoldenCrest-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;===================================================
; Grow Plants! - Chorrol Hinterland patch by Vorians
If DataFileExists "LE_GrowPlants.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\GrowPlants-ChorrolHinterland patch.esp" "GrowPlants-ChorrolHinterland patch.esp"
    EndIf
EndIf
;===============================================================
; Guards of Cyrodiil Redux - Chorrol Hinterland patch by Vorians
If DataFileExists "GuardsofCyrodiilRedux.esp"
    If DataFileExists "xulSilverfishRiverValley.esp"
        CopyPlugin "01 Patches\\GuardsOfCyrodiilRedux-SilverfishRiverValley patch.esp" "GuardsOfCyrodiilRedux-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;=============================================================
; Hammerfell - Unique Landscapes patches by Arthmoor & Vorians
If DataFileExists "HammerfellBorders.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\Hammerfell+UL Lost Coast Patch.esp" "Hammerfell+UL Lost Coast Patch.esp"
    EndIf
    If DataFileExists "xulColovianHighlands_EV.esp"
        CopyPlugin "01 Patches\\Hammerfell-ColovianHighlands patch.esp" "Hammerfell-ColovianHighlands patch.esp"
    EndIf
EndIf
;====================================================
; Haunted House Quest - Ancient Yews patch by Vorians
If DataFileExists "Haunted_House_v1.5.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\HauntedHouseQuest-AncientYews patch.esp" "HauntedHouseQuest-AncientYews patch.esp"
    EndIf
EndIf
;==================================================
; Heart of the Dead - Arrius Creek patch by Vorians
If DataFileExists "HeartOftheDead.esp"
    If DataFileExists "xulArriusCreek.esp"
        CopyPlugin "01 Patches\\HeartoftheDead-ArriusCreek patch.esp" "HeartoftheDead-ArriusCreek patch.esp"
    EndIf
EndIf
;===========================================
; Helms Deep - Arrius Creek patch by Vorians
If DataFileExists "01_Helms_Deep.esp"
    If DataFileExists "02_Helms_Deep.esp"
        If DataFileExists "03_Helms_Deep.esp"
            If DataFileExists "xulArriusCreek.esp"
                CopyPlugin "01 Patches\\HelmsDeep-ArriusCreek patch.esp" "HelmsDeep-ArriusCreek patch.esp"
            EndIf
        EndIf
    EndIf
EndIf
;======================================================
; Hentai Lovely House 2 - Ancient Yews patch by Vorians
If DataFileExists "HentaiLovelyHouse.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\HentaiLovelyHouse2-AncientYews patch.esp" "HentaiLovelyHouse2-AncientYews patch.esp"
    EndIf
EndIf
;===============================================
; Hero's Retreat - Lush Woodlands patch by Chaky
If DataFileExists "Hero's Retreat v1.2.esp"
    If DataFileExists "xulLushWoodlands.esp"
        CopyPlugin "01 Patches\\HerosRetreat-LushWoodlands patch.esp" "HerosRetreat-LushWoodlands patch.esp"
    EndIf
EndIf
;===================================================
; Hoarfrost Castle - Lush Woodlands patch by Vorians
If DataFileExists "HoarfrostCastle.esp"
    If DataFileExists "xulLushWoodlands.esp"
        CopyPlugin "01 Patches\\HoarfrostCastle-LushWoodlands patch.esp" "HoarfrostCastle-LushWoodlands patch.esp"
    Else
        If DataFileExists "xulChorrolHinterland.esp"
            ;Hoarfrost Castle - Chorrol Hinterland-only Patch by Vorians
            CopyPlugin "01 Patches\\HoarfrostCastle-ChorrolHinterland patch.esp" "HoarfrostCastle-ChorrolHinterland patch.esp"
        EndIf
    EndIf
EndIf
;==========================================================
; House On The Bluff v2.0 - The Lost Coast patch by Vorians
If DataFileExists "House On The Bluff .V2.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\HouseOnTheBluff-LostCoast fix.esp" "HouseOnTheBluff-LostCoast fix.esp"
    EndIf
EndIf
;=======================================================
; Imperial City Suburbs - Imperial Isle patch by Vorians
If DataFileExists "Imperial City Suburbs.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\ImperialCitySuburbs-ImperialIsle patch.esp" "ImperialCitySuburbs-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================
; Imperial Manor - Imperial Isle patch by Chaky
If DataFileExists "ImperialManor.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\ImperialManor-ImperialIsle patch.esp" "ImperialManor-ImperialIsle patch.esp"
    EndIf
EndIf
;=============================================================
; Imperial Imperial Infrastructure - Snowdale patch by Vorians
If DataFileExists "Improved Imperial Infrastructure.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\ImprovedImperialInfrastructure-Snowdale patch.esp" "ImprovedImperialInfrastructure-Snowdale patch.esp"
    EndIf
EndIf
;=============================================
; Integration - Snowdale patch by Thomas Kaira
If DataFileExists "bgIntegrationEV.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\Silverfish&bgIntegrationPatch.esp" "Silverfish&bgIntegrationPatch.esp"
    EndIf
EndIf
;=============================================================
; Kragenirs Death Quest - Unique Landscapes patches by Vorians
If DataFileExists "Kragenir's Death Quest.esp"
    If DataFileExists "xulCliffsOfAnvil.esp"
	    If DataFileExists "xulCloudtopMountains.esp"
		    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
			    If DataFileExists "xulTheEasternPeaks.esp"
				    If DataFileExists "xulRollingHills_EV.esp"
                        CopyPlugin "01 Patches\\KragenirsDeathQuest-UniqueLandscapes Merged patch.esp" "KragenirsDeathQuest-UniqueLandscapes Merged patch.esp"
					Else
					    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
						    CopyPlugin "01 Patches\\KragenirsDeathQuest-UniqueLandscapes Merged patch.esp" "KragenirsDeathQuest-UniqueLandscapes Merged patch.esp"
						EndIf
					EndIf
				EndIf
			EndIf
		EndIf
    Else
        If DataFileExists "xulCliffsOfAnvil.esp"
            CopyPlugin "01 Patches\\KragenirsDeathQuest-CliffsOfAnvil patch.esp" "KragenirsDeathQuest-CliffsOfAnvil patch.esp"
        EndIf
        If DataFileExists "xulCloudtopMountains.esp"
            CopyPlugin "01 Patches\\KragenirsDeathQuest-CloudtopMountains patch.esp" "KragenirsDeathQuest-CloudtopMountains patch.esp"
        EndIf
        If DataFileExists "xulRollingHills_EV.esp"
            CopyPlugin "01 Patches\\KragenirsDeathQuest-RollingHills patch.esp" "KragenirsDeathQuest-RollingHills patch.esp"
		Else
		    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
			    CopyPlugin "01 Patches\\KragenirsDeathQuest-RollingHills patch.esp" "KragenirsDeathQuest-RollingHills patch.esp"
			EndIf
        EndIf
        If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
            CopyPlugin "01 Patches\\KragenirsDeathQuest-LostCoast patch.esp" "KragenirsDeathQuest-LostCoast patch.esp"
        EndIf
        If DataFileExists "xulTheEasternPeaks.esp"
            CopyPlugin "01 Patches\\KragenirsDeathQuest-EasternPeaks patch.esp" "KragenirsDeathQuest-EasternPeaks patch.esp"
        EndIf
    EndIf
EndIf
;======================================================
; Kvatch Aftermath v6.6 - Entius Gorge patch by Vorians
If DataFileExists "KvatchAftermath.esp"
    If DataFileExists "xulEntiusGorge.esp"
        CopyPlugin "01 Patches\\KvatchAftermath-EntiusGorge compatibility patch.esp" "KvatchAftermath-EntiusGorge compatibility patch.esp"
    EndIf
EndIf
;===================================================
; Kvatch Rebuilt - Cheydinhal Falls patch by Vorians
If DataFileExists "Kvatch Rebuilt.esm"
    If DataFileExists "Kvatch Rebuilt.esp"
        If DataFileExists "xulCheydinhalFalls.esp"
            CopyPlugin "01 Patches\\KvatchRebuilt-CheydinhalFalls patch.esp" "KvatchRebuilt-CheydinhalFalls patch.esp"
        EndIf
    EndIf
EndIf
;===========================================
; Lost Spires - Dark Forest patch by Vorians
If DataFileExists "The Lost Spires.esp"
    If DataFileExists "xulDarkForest.esp"
        CopyPlugin "01 Patches\\LostSpires-DarkForest patch.esp" "LostSpires-DarkForest patch.esp"
    EndIf
EndIf
;====================================================
; Lost Spires - Fallenleaf Everglade patch by Vorians
If DataFileExists "The Lost Spires.esp"
    If DataFileExists "xulFallenleafEverglade.esp"
        CopyPlugin "01 Patches\\LostSpires-Everglade patch.esp" "LostSpires-Everglade patch.esp"
    EndIf
EndIf
;=========================================================================
; An-Arane Cey - Lost Sword of the Ayleids - Arrius Creek patch by Vorians
If DataFileExists "LostSwordOfTheAylied.esp"
    If DataFileExists "xulArriusCreek.esp"
        CopyPlugin "01 Patches\\LostSwordoftheAyleids-ArriusCreek patch.esp" "LostSwordoftheAyleids-ArriusCreek patch.esp"
    EndIf
EndIf
;=======================================================
; Mad Mage's Tower - Cloudtop Mountains patch by Vorians
If DataFileExists "xulCloudtopMountains.esp"
    If DataFileExists "MadMagesTower.esp"
        CopyPlugin "01 Patches\\MadMagesTower-CloudtopMountains patch.esp" "MadMagesTower-CloudtopMountains patch.esp"
    Else
        If DataFileExists "MadMagesTowerBASIC.esp"
            CopyPlugin "01 Patches\\MadMagesTowerBASIC-CloudtopMountains patch.esp" "MadMagesTowerBASIC-CloudtopMountains patch.esp"
        EndIf
	EndIf
EndIf
;===============================================================
; Mannimarco Resurrection - Unique Landscapes patches by Vorians
If DataFileExists "MannimarcoComplete.esp"
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\MannimarcoResurrection-CliffsOfAnvil patch.esp" "MannimarcoResurrection-CliffsOfAnvil patch.esp"
    EndIf
    If DataFileExists "xulTheEasternPeaks.esp"
        CopyPlugin "01 Patches\\MannimarcoResurrection-EasternPeaks patch.esp" "MannimarcoResurrection-EasternPeaks patch.esp"
    EndIf
EndIf
;================================================
; Marshal Manor - Blackwood Forest patch by Chaky
If DataFileExists "Marshal Manor.esp"
    If DataFileExists "xulBlackwoodForest.esp"
        CopyPlugin "01 Patches\\MarshalManor-BlackwoodForest patch.esp" "MarshalManor-BlackwoodForest patch.esp"
    EndIf
EndIf
;======================================================================
; Millstone Farm And Millstone Farm COBL - Ancient Yews patch by Korana
If DataFileExists "xulAncientYews.esp"
    If DataFileExists "Millstone_Farm.esp"
        CopyPlugin "01 Patches\\Millstone-AncientYews patch.esp" "Millstone-AncientYews patch.esp"
    Else
        If DataFileExists "Millstone_Farm_COBL.esp"
            CopyPlugin "01 Patches\\MillstoneCOBL-AncientYews patch.esp" "MillstoneCOBL-AncientYews patch.esp"
		EndIf
    EndIf
EndIf
;================================================================================
; Mimics! or Ravenview Village & Cloudtop Mountains patches by Arthmoor & Vorians
If DataFileExists "xulCloudtopMountains.esp"
    If DataFileExists "ShezriesTownsMaster.esp"
        If DataFileExists "Mimics!.esp"
            CopyPlugin "01 Patches\\Mimics+Ravenview+Cloudtop Patch.esp" "Mimics+Ravenview+Cloudtop Patch.esp"
		Else
		    CopyPlugin "01 Patches\\Ravenview-Cloudtop-Patch.esp" "Ravenview-Cloudtop-Patch.esp"
		EndIf
	Else
	    If DataFileExists "Mimics!.esp"
		    CopyPlugin "01 Patches\\Mimics-CloudtopMountains patch.esp" "Mimics-CloudtopMountains patch.esp"
		EndIf
    EndIf
EndIf
;================================================
; MMM Dungeons - Cliffs Of Anvil patch by Vorians
If DataFileExists "Mart's Monster Mod - Dungeons of MMM.esp"
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\MMMDungeons-CliffsOfAnvil patch.esp" "MMMDungeons-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;========================================================================
; MTC Bravil River Shack & Village - Bravil Barrowfields patch by Vorians
If DataFileExists "MTCRiverShackv1.2.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\MTCRiverShack-BravilBarrowfields patch.esp" "MTCRiverShack-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=============================================================
; MTC Expanded Villages - Unique Landscapes patches by Vorians
If DataFileExists "MTCExpandedVillages.esp"
    If DataFileExists "xulAncientRedwoods.esp"
	    If DataFileExists "xulSnowdale.esp"
            CopyPlugin "01 Patches\\MTCExpandedVillages-UniqueLandscapes patch.esp" "MTCExpandedVillages-UniqueLandscapes patch.esp"
		EndIf
    Else
	    If DataFileExists "xulAncientRedwoods.esp"
            CopyPlugin "01 Patches\\MTCExpandedVillages-AncientRedwoods patch.esp" "MTCExpandedVillages-AncientRedwoods patch.esp"
		EndIf
	Else
        If DataFileExists "xulSnowdale.esp"
            CopyPlugin "01 Patches\\MTCExpandedVillages-Snowdale patch.esp" "MTCExpandedVillages-Snowdale patch.esp"
		EndIf
    EndIf
EndIf
;=========================================================
; MTC Thieves Grotto - Colovian Highlands patch by Vorians
If DataFileExists "MTCThievesGrottoV4.1.esp"
    If DataFileExists "xulColovianHighlands_EV.esp"
        CopyPlugin "01 Patches\\ThievesGrotto-ColovianHighlands patch.esp" "ThievesGrotto-ColovianHighlands patch.esp"
    EndIf
EndIf
;=======================================================
; Myths & Legends 2 - The Eastern Peaks patch by Vorians
If DataFileExists "mythsandlegends.esp"
    If DataFileExists "xulTheEasternPeaks.esp"
        CopyPlugin "01 Patches\\MythsAndLegends2-EasternPeaks patch.esp" "MythsAndLegends2-EasternPeaks patch.esp"
    EndIf
EndIf
;=====================================================
; Naheema Player Home - Imperial Isle patch by Vorians
If DataFileExists "PlayerHomeNaheema.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\PlayerHomeNaheema-ImperialIsle patch.esp" "PlayerHomeNaheema-ImperialIsle patch.esp"
    EndIf
EndIf
;==========================================================================================
; Dragon Captions' County Sutch: The Ancient City of New Haven - The Heath patch by Vorians
If DataFileExists "(DC) County Sutch - New Haven.esp"
    If DataFileExists "xulTheHeath.esp"
        CopyPlugin "01 Patches\\NewHaven-TheHeath patch.esp" "NewHaven-TheHeath patch.esp"
    EndIf
EndIf
;======================================================
; New Roads & Bridges - Imperial Isle patch by Arthmoor
If DataFileExists "road+bridges.esp"
    If DataFileExists "xulImperialIsle.esp"
        If DataFileExists "LetThePeopleDrink.esp"
            If DataFileExists "Open Cities Outer Districts.esp"
                ;Open Cities Outer Districts + New Roads & Bridges + Let the People Drink - Imperial Isle Patch by Arthmoor
                CopyPlugin "01 Patches\\NRB4+UL-II+LtPD+OCOD Patch.esp" "NRB4+UL-II+LtPD+OCOD Patch.esp"
            Else
                ;New Roads & Bridges + Let The People Drink - Imperial Isle Patch by Arthmoor
                CopyPlugin "01 Patches\\NRB4+UL-II+LtPD Patch.esp" "NRB4+UL-II+LtPD Patch.esp"
            EndIf
        Else
            If DataFileExists "Open Cities Outer Districts.esp"
                ;Open Cities Outer Districts + New Roads & Bridges - Imperial Isle Patch by Arthmoor
                CopyPlugin "01 Patches\\NRB4+UL-II+OCOD Patch.esp" "NRB4+UL-II+OCOD Patch.esp"
            Else
                ;New Roads & Bridges - Imperial Isle Patch by Arthmoor
                CopyPlugin "01 Patches\\NRB4+UL-II Patch.esp" "NRB4+UL-II Patch.esp"
            EndIf
        EndIf
    EndIf
EndIf
;==============================================================
; Nic-V's Better Beggars - Bravil Barrowfields patch by Vorians
If DataFileExists "NBB.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\NicVBetterBeggars-BravilBarrowfields patch.esp" "NicVBetterBeggars-BravilBarrowfields patch.esp"
    EndIf
EndIf
;==================================================================================
; Oblivion Collectible Cards - Unique Landscapes patches by David Brasher & Vorians
If DataFileExists "Oblivion Collectible Cards.esp"
    If DataFileExists "xulAncientYews.esp"
	    If DataFileExists "xulCheydinhalFalls.esp"
		    If DataFileExists "xulSnowdale.esp"
                CopyPlugin "01 Patches\\OblivionCollectibleCards-UniqueLandscapes Merged patch.esp" "OblivionCollectibleCards-UniqueLandscapes Merged patch.esp"
			EndIf
		EndIf
    Else
        If DataFileExists "xulAncientYews.esp"
            CopyPlugin "01 Patches\\OblivionCollectibleCards-AncientYews patch.esp" "OblivionCollectibleCards-AncientYews patch.esp"
        EndIf
        If DataFileExists "xulCheydinhalFalls.esp"
            CopyPlugin "01 Patches\\Oblivion Collectible Cards UL Cheydinhal Falls Patch.esp" "Oblivion Collectible Cards UL Cheydinhal Falls Patch.esp"
        EndIf
        If DataFileExists "xulSnowdale.esp"
            CopyPlugin "01 Patches\\OblivionCollectibleCards-Snowdale patch.esp" "OblivionCollectibleCards-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;============================================================================
; Oblivion War Cry - New Dimension - Unique Landscapes patches by nanonashorn
If DataFileExists "OWC - New Dimension.esp"
    If DataFileExists "xulColovianHighlands_EV.esp"
        CopyPlugin "01 Patches\\OWC - ND UL Colovian Highlands Patch.esp" "OWC - ND UL Colovian Highlands Patch.esp"
    EndIf
    If DataFileExists "xulArriusCreek.esp"
        CopyPlugin "01 Patches\\OWCND - UL Arrius Creek Patch.esp" "OWCND - UL Arrius Creek Patch.esp"
    EndIf
EndIf
;==================================================
; Oblivion Wine Overhaul- River Ethe patch by Chaky
If DataFileExists "xulRiverEthe.esp"
    If DataFileExists "Wine Overhaul.esp"
        CopyPlugin "01 Patches\\WineOverhaul-RiverEthe patch.esp" "WineOverhaul-RiverEthe patch.esp"
    EndIf
    If DataFileExists "Wine Overhaul Better Cities Patch.esp"
        If DataFileExists "Wine Overhaul.esp"
            Message "Es wurden sowohl Wine Overhaul.esp als auch Wine Overhaul Better Cities Patch.esp erkannt. Bitte entferne eines der beiden und versuche es erneut."
			FatalError
        EndIf
        CopyPlugin "01 Patches\\WineOverhaulBC-RiverEthe patch.esp" "WineOverhaulBC-RiverEthe patch.esp"
    EndIf
EndIf
;===========================================================
; Open Cities Classic - Chorrol Hinterland patch by Arthmoor
If DataFileExists "Open Cities Classic.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\OCC-ULCH-Patch.esp" "OCC-ULCH-Patch.esp"
    EndIf
EndIf
;=========================================================
; Open Cities Classic - Cheydinhal Falls patch by Arthmoor
If DataFileExists "Open Cities Classic.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\OCC+Cheydinhal Falls Patch.esp" "OCC+Cheydinhal Falls Patch.esp"
    EndIf
EndIf
;==============================================================================
; Open Cities Classic - Unique Landscapes: Skingrad Outskirts patch by Arthmoor
If DataFileExists "Open Cities Classic.esp"
    If DataFileExists "xulSkingradOutskirts.esp"
        CopyPlugin "01 Patches\\OC+ULSkingradOutskirts Patch.esp" "OC+ULSkingradOutskirts Patch.esp"
    EndIf
EndIf
;========================================================
; Open Cities Reborn - Blackwood Forest patch by Arthmoor
If DataFileExists "Open Cities Reborn.esp"
   If DataFileExists "xulBlackwoodForest.esp"
        CopyPlugin "01 Patches\\OCR+ULBWForest Patch.esp" "OCR+ULBWForest Patch.esp"
        CopyDataFolder "02 OCR + Blackwood Forest Resources\\meshes" "meshes" True
		CopyDataFolder "02 OCR + Blackwood Forest Resources\\textures" "textures" True
   EndIf
EndIf
;========================================================
; Open Cities Reborn - Cheydinhal Falls patch by Arthmoor
If DataFileExists "Open Cities Reborn.esp"
   If DataFileExists "xulCheydinhalFalls.esp"
       CopyPlugin "01 Patches\\OCR+Cheydinhal Falls Patch.esp" "OCR+Cheydinhal Falls Patch.esp"
   EndIf
EndIf
;==========================================================
; Open Cities Reborn - Chorrol Hinterland patch by Arthmoor
If DataFileExists "Open Cities Reborn.esp"
   If DataFileExists "xulChorrolHinterland.esp"
       CopyPlugin "01 Patches\\OCR+ULCH Patch.esp" "OCR+ULCH Patch.esp"
   EndIf
EndIf
;==========================================================
; Open Cities Reborn - Skingrad Outskirts patch by Arthmoor
If DataFileExists "Open Cities Reborn.esp"
   If DataFileExists "xulSkingradOutskirts.esp"
       CopyPlugin "01 Patches\\OCR+ULSkingradOutskirts Patch.esp" "OCR+ULSkingradOutskirts Patch.esp"
   EndIf
EndIf
;=========================================================
; Orden des Drachen - Unique Landscapes patches by Vorians
If DataFileExists "Orden des Drachen.esp"
    If DataFileExists "xulJerallGlacier.esp"
        CopyPlugin "01 Patches\\OrdenDesDrachen-JerallGlacier patch.esp" "OrdenDesDrachen-JerallGlacier patch.esp"
    EndIf
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\OrdenDesDrachen-Snowdale patch.esp" "OrdenDesDrachen-Snowdale patch.esp"
    EndIf
EndIf
;==============================================
; ORE Christmas Mod - Snowdale patch by Vorians
If DataFileExists "OREChristmasMod.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\OREChristmasMod-Snowdale patch.esp" "OREChristmasMod-Snowdale patch.esp"
    EndIf
EndIf
;================================================================
; Oscuro's Oblivion Overhaul - Cliffs of Anvil patch by Prettyfly
If DataFileExists "Oscuro's_Oblivion_Overhaul.esm"
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\OOO-CliffsOfAnvil patch.esp" "OOO-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;=============================================================
; Oscuro's Oblivion Overhaul - Jerall Glacier patch by Vorians
If DataFileExists "xulJerallGlacier.esp"
    If DataFileExists "Oscuro's_Oblivion_Overhaul.esp"
        CopyPlugin "01 Patches\\OOO-JerallGlacier patch.esp" "OOO-JerallGlacier patch.esp"
	Else
	    If DataFileExists "OOO.esp"
		    CopyPlugin "01 Patches\\OOO-JerallGlacier patch.esp" "OOO-JerallGlacier patch.esp"
		EndIf
    EndIf
EndIf
;============================================================
; Oscuro's Oblivion Overhaul - Snowdale patch by Thomas Kaira
If DataFileExists "xulSnowdale.esp"
    If DataFileExists "Oscuro's_Oblivion_Overhaul.esp"
        CopyPlugin "01 Patches\\OOO-Snowdale Patch.esp" "OOO-Snowdale Patch.esp"
	Else
	    If DataFileExists "OOO.esp"
		    CopyPlugin "01 Patches\\OOO-Snowdale Patch.esp" "OOO-Snowdale Patch.esp"
		EndIf
    EndIf
EndIf
;===============================================
; Pine Lodge - Ancient Redwoods patches by Chaky
If DataFileExists "Pine Lodge.esp"
    If DataFileExists "xulAncientRedwoods.esp"
        CopyPlugin "01 Patches\\PineLodge-AncientRedwoods patch.esp" "PineLodge-AncientRedwoods patch.esp"
    EndIf
Else
    If DataFileExists "Pine Lodge ver2.esp"
        If DataFileExists "xulAncientRedwoods.esp"
            CopyPlugin "01 Patches\\PineLodge2-AncientRedwoods patch.esp" "PineLodge2-AncientRedwoods patch.esp"
        EndIf
    EndIf
EndIf
;=================================================
; Quelldorf - Bravil Barrowfields patch by Vorians
If DataFileExists "Quelldorf 1.5.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\Quelldorf-BravilBarrowfields patch.esp" "Quelldorf-BravilBarrowfields patch.esp"
    EndIf
EndIf
;==============================================================
; Quelldorf Without Ship - Bravil Barrowfields patch by Vorians
If DataFileExists "Quelldorf ohne Schiff1.5.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\QuelldorfWithoutShip-BravilBarrowfields patch.esp" "QuelldorfWithoutShip-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=============================================
; Real Swords Nord - Snowdale patch by Vorians
If DataFileExists "xulSnowdale.esp"
    If DataFileExists "RealSwords Nord LO.esp"
        CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
	Else
	    If DataFileExists "RealSwords Nord LO-SI.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord HI.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord HI-SI.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord LO-NPC.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord LO-NPC SI.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord HI-NPC.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
	Else
	    If DataFileExists "RealSwords Nord HI-NPC SI.esp"
		    CopyPlugin "01 Patches\\RealSwordsNord-Snowdale patch.esp" "RealSwordsNord-Snowdale patch.esp"
		EndIf
    EndIf
EndIf
;=============================================================
; Reaper's Necomancer Tower - Cliffs of Anvil patch by Vorians
If DataFileExists "Reaper's The Necromancer's Tower.esp"
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\ReapersNecomancerTower-CliffsOfAnvil patch.esp" "ReapersNecomancerTower-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;===============================================================
; Reaper's The Dark Tower - Bravil Barrowfields patch by Vorians
If DataFileExists "Reaper's The Dark Tower.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\ReapersTheDarkTower-BravilBarrowfields patch.esp" "ReapersTheDarkTower-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=====================================================
; Reaper's Waterfront - Imperial Isle patch by Vorians
If DataFileExists "Reaper's Waterfront.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\ReapersWaterfront-ImperialIsle patch.esp" "ReapersWaterfront-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================================
; Reclaiming Sancre Tor - Unique Landscapes patches by Arthmoor
If DataFileExists "ReclaimSancreTor.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\RST+Cheydinhal Falls.esp" "RST+Cheydinhal Falls.esp"
    EndIf
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\RST+Cliffs of Anvil.esp" "RST+Cliffs of Anvil.esp"
    EndIf
    If DataFileExists "xulCloudtopMountains.esp"
        CopyPlugin "01 Patches\\RST+Cloudtop Mountains.esp" "RST+Cloudtop Mountains.esp"
    EndIf
    If DataFileExists "xulSkingradOutskirts.esp"
        CopyPlugin "01 Patches\\RST+Skingrad Outskirts.esp" "RST+Skingrad Outskirts.esp"
    EndIf
EndIf
;====================================================
; Red Headed Gang - Cheydinhal Falls patch by Vorians
If DataFileExists "Comp_Cecilia.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\RedHeadedGang-CheydinhalFalls patch.esp" "RedHeadedGang-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Redcourt Castle - Unique Landscapes patches by Vorians
If DataFileExists "RedcourtCastle v1_25.esp"
    If DataFileExists "xulAncientYews.esp"
	    If DataFileExists "xulRollingHills_EV.esp"
            CopyPlugin "01 Patches\\RedcourtCastle-UniqueLandscapes Merged patch.esp" "RedcourtCastle-UniqueLandscapes Merged patch.esp"
		Else
		    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
			    CopyPlugin "01 Patches\\RedcourtCastle-UniqueLandscapes Merged patch.esp" "RedcourtCastle-UniqueLandscapes Merged patch.esp"
			EndIf
		Else
            CopyPlugin "01 Patches\\RedcourtCastle-AncientYews patch.esp" "RedcourtCastle-AncientYews patch.esp"
		EndIf
    Else
	    If DataFileExists "xulRollingHills_EV.esp"
            CopyPlugin "01 Patches\\RedcourtCastle-RollingHills patch.esp" "RedcourtCastle-RollingHills patch.esp"
		EndIf
	Else
	    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
            CopyPlugin "01 Patches\\RedcourtCastle-RollingHills patch.esp" "RedcourtCastle-RollingHills patch.esp"
		EndIf
    EndIf
Else
    If DataFileExists "RedcourtCastleFREE v1_25.esp"
	    If DataFileExists "xulAncientYews.esp"
	        If DataFileExists "xulRollingHills_EV.esp"
                CopyPlugin "01 Patches\\RedcourtCastle-UniqueLandscapes Merged patch.esp" "RedcourtCastle-UniqueLandscapes Merged patch.esp"
		    Else
		        If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
			        CopyPlugin "01 Patches\\RedcourtCastle-UniqueLandscapes Merged patch.esp" "RedcourtCastle-UniqueLandscapes Merged patch.esp"
			    EndIf
		    Else
                CopyPlugin "01 Patches\\RedcourtCastle-AncientYews patch.esp" "RedcourtCastle-AncientYews patch.esp"
		    EndIf
        Else
	        If DataFileExists "xulRollingHills_EV.esp"
                CopyPlugin "01 Patches\\RedcourtCastle-RollingHills patch.esp" "RedcourtCastle-RollingHills patch.esp"
		    EndIf
	    Else
	        If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
                CopyPlugin "01 Patches\\RedcourtCastle-RollingHills patch.esp" "RedcourtCastle-RollingHills patch.esp"
		    EndIf
        EndIf
	EndIf
EndIf
;=============================================================
; Region Revive - Lake Rumare - Imperial Isle patch by Vorians
If DataFileExists "Region Revive - Lake Rumare.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\RegionReviveLakeRumare-ImperialIsle patch.esp" "RegionReviveLakeRumare-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================
; Rise Of A Samurai - Snowdale patch by Vorians
If DataFileExists "Rise Of A Samurai.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\RiseOfASamurai-Snowdale patch.esp" "RiseOfASamurai-Snowdale patch.esp"
    EndIf
EndIf
;==================================================================================
; Saphirias Romance And The Djinnis Chamber - Arrius Creek patch by Eddy Kaschinski
If DataFileExists "Dschinni.esp"
    If DataFileExists "xulArriusCreek.esp"
        CopyPlugin "01 Patches\\Dschinni - UL Arrius Creek Patch.esp" "Dschinni - UL Arrius Creek Patch.esp"
    EndIf
EndIf
;=================================================
; Seawatch Abode - The Lost Coast patch by Vorians
If DataFileExists "Seawatch Abode.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\SeawatchAbode-LostCoast patch.esp" "SeawatchAbode-LostCoast patch.esp"
    EndIf
EndIf
;===================================================
; Sentient Weapon II - Ancient Yews patch by Vorians
If DataFileExists "SentientWeapon.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\SentientWeaponII-AncientYews patch.esp" "SentientWeaponII-AncientYews patch.esp"
    EndIf
EndIf
;==========================================================
; Shezrie's Towns (Lakewood) - Aspen Wood patch by Arthmoor
If DataFileExists "ShezriesTownsMaster.esp"
    If DataFileExists "xulAspenWood.esp"
        CopyPlugin "01 Patches\\Lakewood+AspenWood Patch.esp" "Lakewood+AspenWood Patch.esp"
    EndIf
EndIf
;===========================================
; Shipwreck Home - Lost Coast patch by Chaky
If DataFileExists "AR.esp"
   If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
       If DataFileExists "(DC) Sutch Reborn.esp"
           CopyPlugin "01 Patches\\ShipwreckHome-LostCoast-SutchReborn patch.esp" "ShipwreckHome-LostCoast-SutchReborn patch.esp"
       Else
           CopyPlugin "01 Patches\\ShipwreckHome-LostCoast patch.esp" "ShipwreckHome-LostCoast patch.esp"
       EndIf
   EndIf
EndIf
;=======================================================
; Shivering Store - Bravil Barrowfields patch by Vorians
If DataFileExists "SSS_1.0.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\ShiveringStore-BravilBarrowfields patch.esp" "ShiveringStore-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=======================================================
; Sides Sailing Ships - Cliffs Of Anvil patch by Vorians
If DataFileExists "Side's Sailing Ships.esp"
    If DataFileExists "xulCliffsOfAnvil.esp"
        CopyPlugin "01 Patches\\SideSailingShips-CliffsOfAnvil patch.esp" "SideSailingShips-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;============================================
; Silverfish River Valley patches by Vorians
If DataFileExists "xulSilverfishRiverValley.esp"
    If DataFileExists "The Lost Spires.esp"
        If DataFileExists "ImpeREAL Empire - Unique Forts.esp"
            CopyPlugin "01 Patches\\ImpeREAL Forts + Lost Spires + Silverfish River Patch.esp" "ImpeREAL Forts + Lost Spires + Silverfish River Patch.esp"
        Else
            CopyPlugin "01 Patches\\Lost Spires + Silverfish River Patch.esp" "Lost Spires + Silverfish River Patch.esp"
        EndIf
    Else
	    If DataFileExists "ImpeREAL Empire - Unique Forts.esp"
            CopyPlugin "01 Patches\\ImpeREAL Forts + Silverfish River Patch.esp" "ImpeREAL Forts + Silverfish River Patch.esp"
		EndIf
    EndIf
EndIf
;==================================================
; Skingrad Market - The Lost Coast patch by Vorians
If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
    If DataFileExists "Skingrad Market 1.0.esp"
        CopyPlugin "01 Patches\\SkingradMarket-LostCoast patch.esp" "SkingradMarket-LostCoast patch.esp"
	Else
        If DataFileExists "Skingrad Market - MoC 1.0.esp"
            CopyPlugin "01 Patches\\SkingradMarketMoC-LostCoast patch.esp" "SkingradMarketMoC-LostCoast patch.esp"
		EndIf
    EndIf
EndIf
;============================================
; Snow Line Lodge - Snowdale patch by Vorians
If DataFileExists "Snow Line Lodge.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\SnowLineLodge-Snowdale patch.esp" "SnowLineLodge-Snowdale patch.esp"
    EndIf
EndIf
;==============================================
; Spirit's Edge - Entius Gorge patch by Vorians
If DataFileExists "Spirit's Edge.esp"
    If DataFileExists "xulEntiusGorge.esp"
        CopyPlugin "01 Patches\\SpiritsEdge-EntiusGorge patch.esp" "SpiritsEdge-EntiusGorge patch.esp"
    EndIf
EndIf
;==============================================
; Suliin - Bravil Barrowfields patch by Vorians
If DataFileExists "Suliin V1.2.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\Suliin-BravilBarrowfields patch.esp" "Suliin-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=================================================
; Sutch Village - The Lost Coast patch by Arthmoor
If DataFileExists "Sutch Village.esp"
    If DataFileExists "xulBeachesOfCyrodiilLostCoast.esp"
        CopyPlugin "01 Patches\\LostCoast + SutchVillage Patch.esp" "LostCoast + SutchVillage Patch.esp"
    EndIf
EndIf
;=================================================
; Talos Gatehouse - Imperial Isle patch by Vorians
If DataFileExists "TalosBridgeGateHouse.esp"
    If DataFileExists "xulImperialIsle.esp"
        CopyPlugin "01 Patches\\TalosGatehouse + ULImperialIsle.esp" "TalosGatehouse + ULImperialIsle.esp"
    EndIf
EndIf
;=======================================================
; Tears of the Fiend - Cheydinhal Falls patch by Vorians
If DataFileExists "TOTF.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\TearsOfTheFiend-CheydinhalFalls patch.esp" "TearsOfTheFiend-CheydinhalFalls patch.esp"
    EndIf
EndIf
;==========================================================
; The Elder Council - Fallenleaf Everglade patch by Vorians
If DataFileExists "TheElderCouncil.esp"
    If DataFileExists "xulFallenleafEverglade.esp"
        CopyPlugin "01 Patches\\TheElderCouncil-FallenleafEverglade patch.esp" "TheElderCouncil-FallenleafEverglade patch.esp"
    EndIf
EndIf
;================================================
; The Necromancer - Entius Gorge patch by Vorians
If DataFileExists "TheNecromancer.esp"
    If DataFileExists "xulEntiusGorge.esp"
        CopyPlugin "01 Patches\\TheNecromancer-EntiusGorge patch.esp" "TheNecromancer-EntiusGorge patch.esp"
    EndIf
EndIf
;===========================================================
; The Order Of Nibenay - Chorrol Hinterland patch By Vorians
If DataFileExists "SoT_TheOrderofNibenay.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\TheOrderofNibenay-Chorrol Hinterland patch.esp" "TheOrderofNibenay-Chorrol Hinterland patch.esp"
    EndIf
EndIf
;====================================================================
; Tollingbrook Hollow Home - Silverfish River Valley patch by Vorians
If DataFileExists "tollingbrookhollowhome.esp"
    If DataFileExists "xulSilverfishRiverValley.esp"
        CopyPlugin "01 Patches\\TollingbrookHollowHome-SilverfishRiverValley patch.esp" "TollingbrookHollowHome-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;=============================================================
; Tona Simple Dress-Armor - Bravil Barrowfields patch by Chaky
If DataFileExists "tona_simple_dress-armor_ver3.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        CopyPlugin "01 Patches\\TonaSimpleDressArmor-BravilBarrowfields patch.esp" "TonaSimpleDressArmor-BravilBarrowfields patch.esp"
    EndIf
EndIf
;========================================================
; Trails Of Cyrodiil - Unique Landscapes patches by Chaky
SetVar TOCMP 0  ;"TrailsOfCyrodiil-UL merged patch.esp"
SetVar TOCMPW 0 ;"TrailsOfCyrodiilWest-UL merged patch.esp"
SetVar TOCMPC 0 ;"TrailsOfCyrodiilCentral-UL merged patch.esp"
SetVar TOCP11 0 ;"TrailsOfCyrodiil-BravilBarrowfields patch.esp"
SetVar TOCP12 0 ;"TrailsOfCyrodiil-FallenleafEverglade Patch.esp"
SetVar TOCP21 0 ;"TrailsOfCyrodiil-CheydinhalFalls patch.esp"
SetVar TOCP31 0 ;"TrailsOfCyrodiil-PantherRiver patch.esp"
SetVar TOCP41 0 ;"TrailsOfCyrodiil-ChorrolHinterland patch.esp"
SetVar TOCP42 0 ;"TrailsOfCyrodiil-RiverEthe patch.esp"
SetVar TOCP43 0 ;"TrailsOfCyrodiil-SkingradOutskirts patch.esp"
SetVar TOC1 0   ;"Trail  Central.esp"
SetVar TOC2 0   ;"Trail  EAST.esp"
SetVar TOC3 0   ;"Trail  South East.esp"
SetVar TOC4 0   ;"Trail  WEST.esp"

SetVar bCentral 0
SetVar bEast 0
SetVar bSouthEast 0
SetVar bWest 0
SetVar bEveryWhere 0

If DataFileExists "Trail  Central.esp"
    If DataFileExists "xulBravilBarrowfields.esp"
        SetVar TOCP11 1
    EndIf
    If DataFileExists "xulFallenleafEverglade.esp"
        SetVar TOCP12 1
    EndIf
EndIf
If Equal %TOCP11% 1
    If Equal %TOCP12% 1
        SetVar bCentral 1
	EndIf
EndIf

If DataFileExists "Trail  EAST.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        SetVar TOCP21 1
        SetVar bEast 1
    EndIf
EndIf

If DataFileExists "Trail  South East.esp"
    If DataFileExists "xulPantherRiver.esp"
        SetVar TOCP31 1
        SetVar bSouthEast 1
    EndIf
EndIf

If DataFileExists "Trail  WEST.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        SetVar TOCP41 1
    EndIf
    If DataFileExists "xulRiverEthe.esp"
        SetVar TOCP42 1
    EndIf
    If DataFileExists "xulSkingradOutskirts.esp"
        SetVar TOCP43 1
    EndIf
EndIf
If Equal %TOCP41% 1
    If Equal %TOCP42% 1
	    If Equal %TOCP43% 1
            SetVar bWest 1
		EndIf
	EndIf
EndIf

If Equal %bCentral% 1
    If Equal %bEast% 1
	    If Equal %bSouthEast% 1
		    If Equal %bWest% 1
                SetVar bEveryWhere 1
			EndIf
		EndIf
	EndIf
EndIf

If Equal %bEveryWhere% 1
    CopyPlugin "01 Patches\\TrailsOfCyrodiil-UL merged patch.esp" "TrailsOfCyrodiil-UL merged patch.esp"
Else
    If Equal %bCentral% 1
	    CopyPlugin "01 Patches\\TrailsOfCyrodiilCentral-UL merged patch.esp" "TrailsOfCyrodiilCentral-UL merged patch.esp"
	Else
        If Equal %TOCP11% 1
            CopyPlugin "01 Patches\\TrailsOfCyrodiil-BravilBarrowfields patch.esp" "TrailsOfCyrodiil-BravilBarrowfields patch.esp"
		EndIf
        If Equal %TOCP12% 1
            CopyPlugin "01 Patches\\TrailsOfCyrodiil-FallenleafEverglade Patch.esp" "TrailsOfCyrodiil-FallenleafEverglade Patch.esp"
        EndIf
    EndIf
    If Equal %TOCP21% 1
        CopyPlugin "01 Patches\\TrailsOfCyrodiil-CheydinhalFalls patch.esp" "TrailsOfCyrodiil-CheydinhalFalls patch.esp"
    EndIf
    If Equal %TOCP31% 1
        CopyPlugin "01 Patches\\TrailsOfCyrodiil-PantherRiver patch.esp" "TrailsOfCyrodiil-PantherRiver patch.esp"
    EndIf
	If Equal %bWest% 1
	    CopyPlugin "01 Patches\\TrailsOfCyrodiilWest-UL merged patch.esp" "TrailsOfCyrodiilWest-UL merged patch.esp"
	Else
        If Equal %TOCP41% 1
            CopyPlugin "01 Patches\\TrailsOfCyrodiil-ChorrolHinterland patch.esp" "TrailsOfCyrodiil-ChorrolHinterland patch.esp"
        EndIf
        If Equal %TOCP42% 1
            CopyPlugin "01 Patches\\TrailsOfCyrodiil-RiverEthe patch.esp" "TrailsOfCyrodiil-RiverEthe patch.esp"
        EndIf
        If Equal %TOCP43% 1
            CopyPlugin "01 Patches\\TrailsOfCyrodiil-SkingradOutskirts patch.esp" "TrailsOfCyrodiil-SkingradOutskirts patch.esp"
        EndIf
    EndIf
EndIf
;=============================================================
; Treasure Maps: Captus Demus - Rolling Hills patch by Vorians
If DataFileExists "treasure maps captus demus.esp"
    If DataFileExists "xulRollingHills_EV.esp"
        CopyPlugin "01 Patches\\TreasureMapsCaptusDemus-RollingHills patch.esp" "TreasureMapsCaptusDemus-RollingHills patch.esp"
	Else
	    If DataFileExists "xulRollingHills_EV_withoutWheat.esp"
            CopyPlugin "01 Patches\\TreasureMapsCaptusDemus-RollingHills patch.esp" "TreasureMapsCaptusDemus-RollingHills patch.esp"
		EndIf
    EndIf
EndIf
;================================================
; Tree Home - Chorrol Hinterland patch by Vorians
If DataFileExists "TreeHomeKielanai.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\TreeHome-ChorrolHinterland patch.esp" "TreeHome-ChorrolHinterland patch.esp"
    EndIf
Else
    If DataFileExists "TreeHomeKnIntLight.esp"
        If DataFileExists "xulChorrolHinterland.esp"
            CopyPlugin "01 Patches\\TreeHomeIntLight-ChorrolHinterland patch.esp" "TreeHomeIntLight-ChorrolHinterland patch.esp"
		EndIf
    EndIf
EndIf
;===========================================================
; The Lost Province of Zedar - Ancient Yews patch by Vorians
If DataFileExists "Zedar.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\Zedar-AncientYews patch.esp" "Zedar-AncientYews patch.esp"
    EndIf
EndIf
;===============================================================================
; Abandoned Village of Lily - Arrius Creek/Ancient Yews link patch by Vorians
If DataFileExists "Village of Lily 2.0.esp"
    If DataFileExists "xulAncientYews.esp"
        If DataFileExists "xulArriusCreek.esp"
            CopyPlugin "01 Patches\\VillageOfLily-xulPatch_AYAC patch.esp" "VillageOfLily-xulPatch_AYAC patch.esp"
        EndIf
    EndIf
EndIf
;===================================================
; Unholy Cathedral - Blackwood Forest patch by Chaky
If DataFileExists "Unholy Cathedral.esp"
    If DataFileExists "xulBlackwoodForest.esp"
        CopyPlugin "01 Patches\\UnholyChatedral-BlackwoodForest patch.esp" "UnholyChatedral-BlackwoodForest patch.esp"
    EndIf
EndIf
;=============================================
; Villages - Cheydinhal Falls patch by Vorians
If DataFileExists "Villages1.1.esp"
    If DataFileExists "xulCheydinhalFalls.esp"
        CopyPlugin "01 Patches\\Villages-CheydinhalFalls patch.esp" "Villages-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Weynon Retreat - Chorrol Hinterland patch1 by Arthmoor
If DataFileExists "WeynonRetreat.esp"
    If DataFileExists "xulChorrolHinterland.esp"
        CopyPlugin "01 Patches\\WeynonRetreat-ChorrolHinterland-Patch.esp" "WeynonRetreat-ChorrolHinterland-Patch.esp"
    EndIf
EndIf
;=============================================
; White Rose Lodge - Snowdale patch by Vorians
If DataFileExists "WhiteRoseLodgev2.0.esp"
    If DataFileExists "xulSnowdale.esp"
        CopyPlugin "01 Patches\\WhiteRoseLodge-Snowdale patch.esp" "WhiteRoseLodge-Snowdale patch.esp"
    EndIf
EndIf
;=================================================
; Valley View Estate - River Ethe patch by Vorians
If DataFileExists "Valley_View_Estate.esp"
    If DataFileExists "xulRiverEthe.esp"
        CopyPlugin "01 Patches\\ValleyViewEstate-RiverEthe patch.esp" "ValleyViewEstate-RiverEthe patch.esp"
    EndIf
EndIf
;====================================================
; Waldnir's Woods - Ancient Redwoods patch by Vorians
If DataFileExists "FF_WaldnirsWoods.esp"
    If DataFileExists "xulAncientRedwoods.esp"
        CopyPlugin "01 Patches\\WaldnirsWoods-AncientRedwoods patch.esp" "WaldnirsWoods-AncientRedwoods patch.esp"
    EndIf
EndIf
;===================================================
; Windspear Tower - Stendarr Valley patch by Vorians
If DataFileExists "aaaWindSpear.esp"
    If DataFileExists "xulStendarrValley.esp"
        CopyPlugin "01 Patches\\WindspearTower-StendarrValley compatibility patch.esp" "WindspearTower-StendarrValley compatibility patch.esp"
    EndIf
EndIf
;===================================================
; Z's Skeleton Horse - Ancient Yews patch by Vorians
If DataFileExists "Z's Skeleton Horse.esp"
    If DataFileExists "xulAncientYews.esp"
        CopyPlugin "01 Patches\\ZSkeletonHorse-AncientYews patch.esp" "ZSkeletonHorse-AncientYews patch.esp"
    EndIf
EndIf
;;;=======================;;;
;;; Notes on Final Screen ;;;
;;;=======================;;;
Message "Sortiere deine Mods mit BOSS um sicherzustellen, dass die Patches in deiner Ladereihenfolge richtig platziert werden.%NewLine%Vergiss nicht, TES4LODGen auszuführen damit die korrekten LOD Objekte generiert werden.%NewLine%Die Readmes der einzelnen Patches findest du im Verzeichnis Oblivion\\Data\\Docs\\UL Patches Documentation." "Installation abgeschlossen"
;End of Script